<?
$importe = $_POST['importe'];
$cuotas = $_POST['cuotas'];

include ("../conectarse.php");

$consulta = "SELECT * FROM cuotas where cuo_importe_total like '$importe' and cuo_cantidad like '$cuotas'";
$resultado = mysql_query($consulta);
$fila = mysql_fetch_array($resultado);

?>

  <tr>
        <td>Importe (prestamo):</td>
        <td> $

<input type = "text" name = "importe" onchange="this.form.submit()" value="<?echo $importe;?>">
          </td>
        <td>Cuotas:</td>
        <td>
<input type = "text" name = "cuotas" onchange="this.form.submit()" value  = "<?echo $cuotas;?>">
          </td>
        </tr>

  <tr>
        <td>Importe (x cuota):</td>
        <td> $

<input type = "text" name = "interes" value = "<?echo $fila['cuo_importe_1'];?>" onchange="this.form.submit()">
          </td>
        <td></td>
        <td>
          </td>
        </tr>
  <tr><td colspan  = "4"><hr></td></tr>



</form>
<form action  = "carpetanueva3.php" method = "POST">

         <tr>
        <td>Nombre de la carpeta:</td>
        <td><input type = "text" name = "carpetanombre" value = "" ></td>
        <td></td>
        <td></td>
        </tr>
<input type = "hidden" name = "importe" value = "<?echo $importe;?>">

<input type = "hidden" name = "cuotas" value = "<?echo $cuotas;?>">

<input type = "hidden" name = "interes" value = "<?echo $interes;?>">
